<?php

    function alttext($alt = NULL, $clean = TRUE) {

        if (isset($alt) && $alt !== ""):
            if (!$clean)
                $html = '<div class="alttext">' . $alt . '</div>';
            else
                $html = $alt;
        else:
            $html = "";
        endif;
        return $html;
    }
    